package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.dto.WarehouseDTO;
import com.itheima.pojo.Warehouse;

import java.util.List;


public interface WarehouseService {

    Page<WarehouseDTO> getWarehousePage(Page<WarehouseDTO> page, WarehouseDTO dto);

    Warehouse getWarehouseById(Integer id);

    boolean saveWarehouse(Warehouse warehouse);

    boolean updateWarehouse(Warehouse warehouse);

    boolean deleteWarehouse(Integer id);

    /**
     * 获取仓库列表
     * @return
     */
    List<Warehouse> listAll();

}